<template>
    <el-button class="text-button" :type="type" v-bind="$attrs" v-on="$listeners">
        <slot></slot>
    </el-button>
</template>
<script>
export default {
    name: 'TextButton',
    props: {
        type: {
            type: String,
            default: 'text'
        }
    },
    data() {
        return {};
    }
};
</script>
<style lang="scss" scoped>
.text-button {
    &.el-button {
        white-space: initial;
        text-align: left;
        padding: 0;
        user-select: unset;
    }
}
</style>
